home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 126-150 / disk_147 / sys / prime / prime.zoo / make.cpl < prev    next >
Text File  |  1988-07-25  |  3KB  |  101 lines

  1. /* make for micrognuemacs on primos
  2. /* by Robert A. Larson
  3. &args como:-como; ph:-ph; v64v: -64v;
  4. &if ^ [null %como%] &then como make.como
  5. &if ^ [null %ph%] &then &do
  6.   chap idle
  7. &end
  8. &do f &list *>sys>prime>sysdef.h *>sys>default>ttydef.h *>sys>default>chrdef.h
  9.   &if ^ [exists [entryname %f%]] &then copy %f% -rpt
  10.   &else &if [attrib [entryname %f%] -dtm] < [attrib %f% -dtm] ~
  11.     &then copy %f% -nq -rpt
  12. &end
  13. &set_var w := [attrib def.h -dtm]
  14. &if %w% < [attrib sysdef.h -dtm] &then &set_var w := [attrib sysdef.h -dtm]
  15. &if %w% < [attrib ttydef.h -dtm] &then &set_var w := [attrib ttydef.h -dtm]
  16. &if %w% < [attrib chrdef.h -dtm] &then &set_var w := [attrib chrdef.h -dtm]
  17. &if [null %v64v%] &then &do
  18.   &if %w% < [attrib *>sys>prime>mg.options.c -dtm] ~
  19.     &then &set_var w := [attrib *>sys>prime>mg.options.c -dtm]
  20.   &set_var binext := .bin
  21. &end
  22. &else &do
  23.   &if %w% < [attrib *>sys>prime>mg.64v.options.c -dtm] ~
  24.     &then &set_var w := [attrib *>sys>prime>mg.64v.options.c -dtm]
  25.   &set_var binext := .64v.bin
  26.   &set_var m := ^ [exists stackptr$.64v.bin]
  27.   &if ^ %m% &then &do
  28.     &set_var bw := [attrib stackptr$.64v.bin -dtm]
  29.     &set_var m := [attrib *>sys>prime>stackptr$.pma -dtm] > %bw% | %w% > %bw%
  30.   &end
  31.   &if %m% &then pma *>sys>prime>stackptr$.pma -list no -bin stackptr$.64v.bin
  32. &end
  33. &s dir := *
  34. &do f &list basic.c buffer.c dir.c dired.c display.c echo.c extend.c file.c ~
  35.     help.c kbd.c keymap.c line.c macro.c main.c match.c modes.c paragraph.c ~
  36.     random.c region.c search.c version.c window.c word.c
  37.   &call compile
  38. &end
  39. &s dir := *>sys>prime
  40. &do f &list cinfo.c fileio.c spawn.c ttyio.c
  41.   &call compile
  42. &end
  43. &s dir := *>sys>default
  44. &do f &list tty.c
  45.   &call compile
  46. &end
  47. &s dir := *>termlib
  48. &do f &list fgetlr.c tgetent.c tgetflag.c tgetnum.c tgetstr.c tgoto.c tputs.c
  49.   &call compile
  50. &end
  51. date
  52. time
  53. &set_var u := 0
  54. &data bind
  55.   version mg 2a
  56.   no_wildcard
  57.   no_iteration
  58.   li ccmain
  59.   &do f &items [wild @%binext% -single u]
  60.     lo %f%
  61.   &end
  62.   li c_lib
  63.   li
  64.   dynt -all
  65.   rdc
  66.   &if [null %v64v%] &then &do
  67.     map mg.map
  68.     file mg.run
  69.   &end
  70.   &else &do
  71.     map mg.64v.map
  72.     file mg.64v.run
  73.   &end
  74. &end
  75. date
  76. time
  77. &if ^ [null %como%] &then como -end
  78. &return
  79.  
  80. &routine compile
  81.       &set_var b := [before %f% '.']%binext%
  82.       &set_var f := %dir%>%f%
  83.       &set_var m := ^ [exists %b%]
  84.       &if ^ %m% &then &do             /* avoid attrib on non-existant file
  85.         &set_var bw := [attrib %b% -dtm]
  86.         &set_var m := [attrib %f% -dtm] > %bw% | %w% > %bw%
  87.       &end
  88.       &if %m% &then &do
  89.         type %f%
  90.         date
  91.         &if [null %v64v%] &then &do
  92.           ci %f% -optionsfile *>sys>prime>mg.options.c -bin %b%
  93.         &end
  94.         &else &do
  95.           cc %f% -optionsfile *>sys>prime>mg.64v.options.c -bin %b%
  96.         &end
  97.       &end
  98. &return
  99.  
  100.  
  101.